package com.infocollect.project.grant.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.infocollect.project.grant.mapper.TappFromDefaultMapper;
import com.infocollect.project.grant.domain.TappFrom;
import com.infocollect.project.grant.service.ITappFromService;

/**
 * 报名表单管理Service业务层处理
 * 
 * @author infocollect
 * @date 2022-11-06
 */
@Service
public class TappFromServiceImpl implements ITappFromService 
{
    @Autowired
    private TappFromDefaultMapper tappFromMapper;

    /**
     * 查询报名表单管理
     * 
     * @param fid 报名表单管理ID
     * @return 报名表单管理
     */
    @Override
    public TappFrom selectTappFromById(Long fid)
    {
        return tappFromMapper.selectTappFromById(fid);
    }

    /**
     * 查询报名表单管理列表
     * 
     * @param tappFrom 报名表单管理
     * @return 报名表单管理
     */
    @Override
    public List<TappFrom> selectTappFromList(TappFrom tappFrom)
    {
        return tappFromMapper.selectTappFromList(tappFrom);
    }

    /**
     * 新增报名表单管理
     * 
     * @param tappFrom 报名表单管理
     * @return 结果
     */
    @Override
    public int insertTappFrom(TappFrom tappFrom)
    {
        return tappFromMapper.insertTappFrom(tappFrom);
    }

    /**
     * 修改报名表单管理
     * 
     * @param tappFrom 报名表单管理
     * @return 结果
     */
    @Override
    public int updateTappFrom(TappFrom tappFrom)
    {
        return tappFromMapper.updateTappFrom(tappFrom);
    }

    /**
     * 批量删除报名表单管理
     * 
     * @param fids 需要删除的报名表单管理ID
     * @return 结果
     */
    @Override
    public int deleteTappFromByIds(Long[] fids)
    {
        return tappFromMapper.deleteTappFromByIds(fids);
    }

    /**
     * 删除报名表单管理信息
     * 
     * @param fid 报名表单管理ID
     * @return 结果
     */
    @Override
    public int deleteTappFromById(Long fid)
    {
        return tappFromMapper.deleteTappFromById(fid);
    }
}
